package com.umakr.demo.controller;

import com.umakr.demo.model.Combobox;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by yangliu on 2017/7/29.
 */
@RequestMapping("/Controller01")
@Controller
public class Controller01 {
//    @Autowired
//    TestService testService;
//    @RequestMapping("/index")
////    public ModelAndView index(){
////        System.out.println(testService.testSelect());
////        ModelAndView mav = new ModelAndView();
//        mav.setViewName("day01/doucument");
//        return mav;
//    }

    @RequestMapping("/index2")
    public ModelAndView index2(Combobox.User user){
        ModelAndView mav = new ModelAndView();
        mav.addObject("user",user);
        mav.setViewName("day01/index2");
        return mav;
    }


}







